<?
class Principio_Model_Search
{
    private $string;
    private $area;
    private $id;
    private $result_name;
    private $open_item_function_name;
    private $result = array();
    private $parent_id;

    public function __construct($string, $area, $values = false)
    {
        $this->string = $string;
        $this->area = $area;
        if ($values["result_array"])
            $this->result = $values["result_array"];
        if ($values["id"])
            $this->id = $values["id"];
        if ($values["result_name"])
            $this->result_name = $values["result_name"];
        if ($values["open_item_function_name"])
            $this->open_item_function_name = $values["open_item_function_name"];
        if ($values["parent_id"])
            $this->parent_id = $values["parent_id"];

    }

    public function getSearchString()
    {
        return $this->string;
    }

    public function setSearchString($string)
    {
        $this->string = $string;
        return $this;
    }

    public function getSearchArea()
    {
        return $this->search_area;
    }

    public function setSearchArea($area)
    {
        $this->search_area = $area;
        return $this;
    }

    public function getId()
    {
        return $this->id;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getResultName()
    {
        return $this->result_name;
    }

    public function setResultName($name)
    {
        $this->result_name = $name;
        return $this;
    }

    public function getResult()
    {
        return $this->result;
    }

    public function setResult($result_array)
    {
        $this->result = $result_array;
        return $this;
    }

    public function getOpenItemFunctionName()
    {
        return $this->open_item_function_name;
    }

    public function setOpenItemFunctionName($function_name)
    {
        $this->open_item_function_name = $function_name;
        return $this;
    }

    public function getParentID()
    {
        return $this->parent_id;
    }

    public function setParentID($parent_id)
    {
        $this->parent_id = $parent_id;
        return $this;
    }

}
?>